package top.maof.book.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Deprecated
public @interface FieldType {
    // 是否分词
    boolean isTokenized() default true;

    // 是否索引
    boolean isIndexed() default true;

    // 是否存储
    boolean isStored() default true;

    // 权重
    double weight() default 1.0;
}
